<script language="javascript" type="text/javascript">
var bug_html = '';	
var bug_catid;
var bug_browser;
var bug_content;
var bug_user = "{$userLink}";

function doAddBug(){
	bug_browser = '';
	
	bug_content  = $('#bug_content').val();	
	var handURL = '提交地址：<a href=\"{$url}\" target=\"_blank\">{$url}</a><br/><br/>';	
	
	for(i=1; i<3; i++) {
		var res = $('#bug_catid'+i).attr('checked');
		if(res) bug_catid = $('#bug_catid'+i).val();
	}
	for(i=1; i<7; i++){
		res = $('#bug_browser'+i).attr('checked');
		if(res) {
			if(bug_browser=='') bug_browser = $('#bug_browser'+i).val();
			else bug_browser = bug_browser + ',' + $('#bug_browser'+i).val();
		}
	}

	$.post(
		   'http://hi.huawei.com/bug2/apps/feedback/index.php?s=/Bug/doadd_ajax',
		   {catid:bug_catid,browser:bug_browser,content:bug_content,user:bug_user,handURL:handURL},
		   function(txt){
			  if(txt==1){
				  $.tbox.yes('提交成功,谢谢您的支持!');	
			  }else{
				  $.tbox.no('提交失败!');
			  }
			  setTimeout('$.tbox.close()',1500);
	});	
}

function popBugBox(){
	if(bug_html==''){
		bug_html = $('#BugBoxHtml').html();
		$('#BugBoxHtml').html('');			
	}
			
	$.tbox.popBox(bug_html,'我要提建议！',{ok:"doAddBug"});
}
</script>

<!--弹窗部分 begin-->
<div id="BugBoxHtml" style="display:none;">
<div  class="participation_box">
<dl style="padding-top:0px;">
<dd class="lh22 fB"><img class="mr5" src="__PUBLIC__/themes/blue/images/hi_icon.gif" />的成长需要你的关爱。<br />
<span class="pt5 lh18 fn pl10">如果在hi中找知识、找专家不方便，或者是不知道怎么找；请告诉我们你的宝贵意见，或直接联系我们。<br />
  联系人：<a href="{:U('space/view','uid=8')}" target="_blank">王宝明</a> 00135495，曹丽蓉 00119527</span></dd>
  <dd class="lineB_D" style="margin-top:10px;"></dd>
</dl>

<dl>
<dt>类型</dt>
<dd>
	 <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_catid2" name="bug_catid" type="radio" class="TextH20" value="5" checked="checked" />改进建议</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_catid1" name="bug_catid" type="radio" class="TextH20" value="4" />bug提交</span>	
</dd>
</dl>

<dl>
<dt>浏览器</dt>
<dd>
    <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser1" name="bug_browser" type="checkbox" value="IE6" checked="checked"/>IE6.0</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser2" name="bug_browser" type="checkbox" value="IE7"/>IE7</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser3" name="bug_browser" type="checkbox" value="IE8"/>IE8</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser4" name="bug_browser" type="checkbox" value="FireFox"/>FireFox</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser5" name="bug_browser" type="checkbox" value="Chrome"/>Chrome</span>
     <span class="mr5" style="*margin-right:2px;"><input class="mr5" id="bug_browser6" name="bug_browser" type="checkbox" value="其它"/>其它</span>
</dd>
</dl>
<dl>
<dt>问题描述</dt>
<dd><textarea id="bug_content" cols="" class="in_put" rows="" style="width:98%;"></textarea></dd>
</dl>
</div>
</div>
<!--弹窗部分 end-->
<!--按钮部分 begin-->
<div><a href="javascript:void(0)" onclick="popBugBox()" class="">用户反馈</a></div>
<!--按钮部分 begin-->
